-- GENERATED SPELL FOR [Raging Cliff Stormer] --


function spell0_4009(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_4009', 3000, 1)
end

function spell1_4009(pUnit, Event) --@Thunderclap,Self--
pUnit:FullCastSpellOnTarget(8078,pUnit)
pUnit:RegisterEvent('Sorts_4009', 10313, 1)
end

function Sorts_4009(pUnit, Event)
local choix_sorts_4009 = math.random(0, 1)
if choix_sorts_4009 == 0 then
pUnit:RegisterEvent('spell0_4009', 1, 1)
end
if choix_sorts_4009 == 1 then
pUnit:RegisterEvent('spell1_4009', 1, 1)
end
end

function mob4009_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4009', math.random(1500, 3000), 1)
end

function mob4009_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4009_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4009_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4009, 1, 'mob4009_Action')
RegisterUnitEvent(4009, 2, 'mob4009_Leave')
RegisterUnitEvent(4009, 3, 'mob4009_Kill')
RegisterUnitEvent(4009, 4, 'mob4009_Die')
